package com.chwn.curiousdiary.ui.search;

import com.chwn.curiousdiary.bean.HotSearchBean;
import com.chwn.curiousdiary.bean.StoryListBean;
import com.chwn.harulib.mvp.BasePresenter;
import com.chwn.harulib.mvp.BaseView;

import java.util.List;

/**
 * Created by Myshikin on 2017/8/8.
 */

public interface SearchContract {
    interface View extends BaseView {
        void showSearchStories(List<StoryListBean> storyList );
        void showHotSearch(List<HotSearchBean> hotKeys );
    }

    abstract class Presenter extends BasePresenter<SearchContract.View> {
        public abstract void getSearchStories(int page , String searchKey);
        public abstract void getHotSearch();
    }
}
